<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()	+ path + "/";
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>

<jsp:include page="changePwd.jsp" flush="true"/>
<link rel="stylesheet"
	href="https://static.runoob.com/assets/js/jquery-treeview/jquery.treeview.css" />
<link rel="stylesheet"
	href="https://static.runoob.com/assets/js/jquery-treeview/screen.css" />

<!-- <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> -->
<script
	src="https://static.runoob.com/assets/js/jquery-treeview/jquery.cookie.js"></script>
<script
	src="https://static.runoob.com/assets/js/jquery-treeview/jquery.treeview.js"
	type="text/javascript"></script>


<script type="text/javascript">
	var ctx="<%=path%>";  
</script>
<link rel="stylesheet" href="<%=path%>/css/glsmcx.css" type="text/css" />
<link rel="stylesheet" href="<%=path%>/css/upload.css" type="text/css">
<script type="text/javascript"
	src="<%=path%>/js/controllers/spflglCtrl.js"></script>
<div class="glsmcxWrap">
	<div class="container-fluid">
		<div class="panel panel-default">

			<input id="queryType" value="ht" style="display: none;"></input>
			<div class="panel-body clearfix" style="width: 40%; float: left">
				<div class="panel-heading">
					<h3 class="panel-title">商品分类</h3>
				</div>
				<ul class="clearfix listwork"
					style="border-bottom: 1px solid #dddddd">
					<li data-target=".modal-add-tree" data-toggle="modal"
						class="add clearfix"><i></i>增加</li>
				</ul>
				<div id="main" style="font-size: 16px;">
					<ul id="browser" class="filetree treeview-famfamfam"
						style="padding: 10px, 100px">

					</ul>
				</div>
			</div>


			<div class="panel-body clearfix" style="width: 40%; float: left">
				<div class="panel-heading">
					<h3 class="panel-title">商品分类属性</h3>
				</div>
				<ul class="clearfix listwork">
					<li data-target=".modal-add" data-toggle="modal"
						class="add clearfix"><i></i>增加</li>
					<li class="del delete-batch clearfix" id="deleteMany"><i></i>删除</li>
				</ul>
				<div class="table-responsive">
					<table class="table table-bordered check left">
						<thead>
							<tr>
								<th>
									<div class="checkbox">
										<label><input type="checkbox" class="all"></label>
									</div>
								</th>
								<th>序号</th>
								<th>分类名称</th>
								<th>属性名称</th>
								<th>属性值</th>
							</tr>
						</thead>

						<tbody id="dataBody">
						</tbody>
					</table>

					<table class="table2excel table table-bordered hide">
					</table>
				</div>
			</div>


		</div>
	</div>
</div>


<!-- 添加s -->
<div class="modal fade modal-add" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">新增商品分类属性</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate" id="addProductAttrForm">
					<div class="form-group">
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">属性名称：</label>
							<div class="col-sm-81">
								<input type="text" name="attrKey" class="form-control input-sm"
									placeholder="属性名称，例如：段位">
							</div>
						</div>
						<input type="hidden" name="productTypeId" />
						<input type="hidden" name="productTypeName" />
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">属性值：</label>
							<div class="col-sm-81">
								<input type="text" name="attrValue" class="form-control input-sm" placeholder="属性值，例如：1段">
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<span class="errorMsg red"></span>
				<button type="button" class="btn btn-primary" id="btn_add_attr">保存</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>
</div>
<!-- 添加e -->

<!-- 添加s -->
<div class="modal fade modal-add-tree" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 id="myModalLabel">新增商品分类</h4>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate"
					id="addTreeTypeForm">
					<div class="form-group">
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">分类名称：</label>
							<div class="col-sm-81">
								<input type="text" name="typeName" class="form-control input-sm"
									placeholder="分类名称"> <input type="hidden"
									name="parentId" /> <input type="hidden" name="level" />
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<span class="errorMsg red"></span>
				<button type="button" class="btn btn-primary" id="btn_add_tree">保存</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>
</div>
<!-- 添加e -->

<!-- 修改s -->
<div class="modal fade modal-edit" tabindex="-1" role="dialog"
	aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
			</div>
			<div class="modal-body">
				<form class="form-horizontal" novalidate="novalidate"
					id="updateProductTypeForm">
					<div class="form-group">
						<div class="col-lg-61">
							<label class="col-sm-41 control-label">分类名称：</label>
							<div class="col-sm-81">
								<input type="text" name="typeName" class="form-control input-sm"
									placeholder="分类名称"> <input type="hidden" name="id" />
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<span class="errorMsg red updateMsg"></span>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" class="btn btn-primary" id="btn_update">保存</button>
			</div>
		</div>
	</div>
</div>
<!-- 修改e -->

